import Vue from "vue";
import App from "./App.vue";
import router from "./router/router";
import store from "./store";
import "./registerServiceWorker";
import "lib-flexible";

import Vuetify from "vuetify";
import "vuetify/dist/vuetify.min.css";
import "material-design-icons-iconfont"; // icon

import FastClick from "fastclick";
// import "normalize.css";

import "@/style/index.scss";

Vue.use(Vuetify);
FastClick.attach(document.body);
// Vue.mixin({
//   mounted: function() {
//     console.log(333);
//     //@ts-ignore
//     const push = this.$router.push;
//     //@ts-ignore
//     this.$router.push = function() {
//       console.log(arguments, 4545);
//       arguments[0].path = `/hhh${arguments[0].path}`;

//       push.apply(this, arguments);
//     };
//   }
// });

Vue.config.productionTip = false;
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");

// console.log(Vue.prototype, router);
// const push = Vue.prototype.$router.push;
// Vue.prototype.$router.push = function() {
//   console.log(333);
// };

/* eslint-disable */
// import vConsole from "vconsole";
// new vConsole();
